/**
 * 员工
 */
// 获取Token
export const getToken = () => {
  return localStorage.getItem('token')
}

// 设置Token
export const setToken = (token) => {
  localStorage.setItem('token', token)
}

// 获取员工信息
export const getUserInfo = () => {
  return JSON.parse(localStorage.getItem('userInfo'))
}

// 设置员工信息
export const setUserInfo = (userInfo) => {
  localStorage.setItem('userInfo', JSON.stringify(userInfo))
}
